package com.sinosoft.sm.message.service.api;

import com.sinosoft.sm.message.entity.MessageRecordEntity;
import com.sinosoft.sm.message.web.dto.RecordData;
import com.sinosoft.sm.system.common.entity.PaginationEntity;

/**
 * 短信记录服务层接口定义
 * @author leichao
 *
 */
public interface RecordService {

	
	/**
	 * 根据条件查询信息记录
	 * @param recordData
	 * @param page
	 * @param rows
	 * @return
	 */
	PaginationEntity getRecord(RecordData recordData, int page, int rows);

	/**
	 * 1.发送短信，捕获发送短信的结果，有问题则抛出异常
	 * 2.添加消息记录
	 * @param messageRecordEntity
	 * @return
	 */
	boolean addMessageRecord(MessageRecordEntity messageRecordEntity);

}
